using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_PhanBoLuanChuyenThietBiManagerBase
    {
        public TBL_PhanBoLuanChuyenThietBiManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity Insert(TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity Update(TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity UpdateWithCondition(TBL_PhanBoLuanChuyenThietBiEntity obj,TBL_PhanBoLuanChuyenThietBiEntity objCond)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_PhanBoLuanChuyenThietBiEntity Delete(TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteWithCondition(TBL_PhanBoLuanChuyenThietBiEntity objCond)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IDPhanBo duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByIDPhanBo (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"IDPhanBo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IDPhanBo 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByIDPhanBo (Guid IDPhanBo )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.IDPhanBo = IDPhanBo;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"IDPhanBo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaCaBiet (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCaBiet 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaCaBiet (string MaCaBiet )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaCaBiet = MaCaBiet;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaPB (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaPB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPB 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaPB (string MaPB )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaPB = MaPB;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaPB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTTTB duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaTTTB (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaTTTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTTTB 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaTTTB (string MaTTTB )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaTTTB = MaTTTB;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaTTTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaVT duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaVT (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaVT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaVT 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByMaVT (string MaVT )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaVT = MaVT;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"MaVT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayCap duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNgayCap (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NgayCap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayCap 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNgayCap (string NgayCap )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayCap = NgayCap;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NgayCap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayLapDat duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNgayLapDat (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NgayLapDat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayLapDat 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNgayLapDat (string NgayLapDat )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayLapDat = NgayLapDat;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NgayLapDat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiCap duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNguoiCap (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NguoiCap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiCap 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNguoiCap (string NguoiCap )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiCap = NguoiCap;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NguoiCap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNguoiNhanBanGiao (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiNhanBanGiao 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByNguoiNhanBanGiao (string NguoiNhanBanGiao )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TrangThai duoc set trong object
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByTrangThai (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"TrangThai");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TrangThai 
        /// </summary>
        /// <returns>TBL_PhanBoLuanChuyenThietBiEntity</returns>
        public TBL_PhanBoLuanChuyenThietBiEntity DeleteByTrangThai (string TrangThai )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.TrangThai = TrangThai;  
            return (TBL_PhanBoLuanChuyenThietBiEntity)Adapter.DeleteByField(obj,"TrangThai");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_PhanBoLuanChuyenThietBiEntity Select(TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return (TBL_PhanBoLuanChuyenThietBiEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_PhanBoLuanChuyenThietBiEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_PhanBoLuanChuyenThietBiEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectAllLST()
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_PhanBoLuanChuyenThietBiEntity()),new TBL_PhanBoLuanChuyenThietBiEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_PhanBoLuanChuyenThietBiEntity(),option),new TBL_PhanBoLuanChuyenThietBiEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIDPhanBo (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"IDPhanBo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIDPhanBo (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IDPhanBo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByIDPhanBoLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IDPhanBo"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByIDPhanBoLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IDPhanBo",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIDPhanBo (Guid IDPhanBo )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.IDPhanBo = IDPhanBo;  
            return Adapter.SelectByField(obj,"IDPhanBo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIDPhanBo (Guid IDPhanBo, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.IDPhanBo = IDPhanBo;  
            return Adapter.SelectByField(obj,"IDPhanBo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByIDPhanBoLST (Guid IDPhanBo )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.IDPhanBo = IDPhanBo;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IDPhanBo"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IDPhanBo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByIDPhanBoLST (Guid IDPhanBo, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.IDPhanBo = IDPhanBo;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IDPhanBo",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaCaBiet",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaCaBietLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCaBiet"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaCaBietLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaCaBiet",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (string MaCaBiet )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaCaBiet = MaCaBiet;  
            return Adapter.SelectByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (string MaCaBiet, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaCaBiet = MaCaBiet;  
            return Adapter.SelectByField(obj,"MaCaBiet",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaCaBietLST (string MaCaBiet )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaCaBiet = MaCaBiet;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCaBiet"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaCaBietLST (string MaCaBiet, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaCaBiet = MaCaBiet;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCaBiet",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaPB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaPB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaPBLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaPBLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaPB",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (string MaPB )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaPB = MaPB;  
            return Adapter.SelectByField(obj,"MaPB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (string MaPB, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaPB = MaPB;  
            return Adapter.SelectByField(obj,"MaPB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaPBLST (string MaPB )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaPB = MaPB;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaPBLST (string MaPB, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaPB = MaPB;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTTTB (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaTTTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTTTB (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaTTTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaTTTBLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTTTB"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaTTTBLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaTTTB",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTTTB (string MaTTTB )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaTTTB = MaTTTB;  
            return Adapter.SelectByField(obj,"MaTTTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTTTB (string MaTTTB, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaTTTB = MaTTTB;  
            return Adapter.SelectByField(obj,"MaTTTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaTTTBLST (string MaTTTB )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaTTTB = MaTTTB;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTTTB"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTTTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaTTTBLST (string MaTTTB, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaTTTB = MaTTTB;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTTTB",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaVT (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaVT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaVT (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaVT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaVTLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaVT"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaVTLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaVT",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaVT (string MaVT )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaVT = MaVT;  
            return Adapter.SelectByField(obj,"MaVT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaVT (string MaVT, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaVT = MaVT;  
            return Adapter.SelectByField(obj,"MaVT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaVTLST (string MaVT )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaVT = MaVT;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaVT"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaVT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByMaVTLST (string MaVT, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.MaVT = MaVT;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaVT",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayCap (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayCap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayCap (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayCap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayCapLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayCap"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayCapLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayCap",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayCap (string NgayCap )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayCap = NgayCap;  
            return Adapter.SelectByField(obj,"NgayCap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayCap (string NgayCap, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayCap = NgayCap;  
            return Adapter.SelectByField(obj,"NgayCap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayCapLST (string NgayCap )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayCap = NgayCap;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayCap"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayCapLST (string NgayCap, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayCap = NgayCap;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayCap",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLapDat (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayLapDat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLapDat (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayLapDat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayLapDatLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLapDat"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayLapDatLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayLapDat",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLapDat (string NgayLapDat )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayLapDat = NgayLapDat;  
            return Adapter.SelectByField(obj,"NgayLapDat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLapDat (string NgayLapDat, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayLapDat = NgayLapDat;  
            return Adapter.SelectByField(obj,"NgayLapDat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayLapDatLST (string NgayLapDat )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayLapDat = NgayLapDat;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLapDat"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLapDat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNgayLapDatLST (string NgayLapDat, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NgayLapDat = NgayLapDat;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLapDat",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiCap (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiCap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiCap (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiCap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiCapLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiCap"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiCapLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiCap",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiCap (string NguoiCap )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiCap = NguoiCap;  
            return Adapter.SelectByField(obj,"NguoiCap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiCap (string NguoiCap, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiCap = NguoiCap;  
            return Adapter.SelectByField(obj,"NguoiCap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiCapLST (string NguoiCap )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiCap = NguoiCap;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiCap"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiCap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiCapLST (string NguoiCap, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiCap = NguoiCap;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiCap",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiNhanBanGiaoLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiNhanBanGiao"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiNhanBanGiaoLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiNhanBanGiao",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (string NguoiNhanBanGiao )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (string NguoiNhanBanGiao, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiNhanBanGiaoLST (string NguoiNhanBanGiao )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiNhanBanGiao"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByNguoiNhanBanGiaoLST (string NguoiNhanBanGiao, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiNhanBanGiao",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTrangThai (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"TrangThai");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTrangThai (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TrangThai",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByTrangThaiLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TrangThai"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByTrangThaiLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TrangThai",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTrangThai (string TrangThai )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.TrangThai = TrangThai;  
            return Adapter.SelectByField(obj,"TrangThai");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTrangThai (string TrangThai, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.TrangThai = TrangThai;  
            return Adapter.SelectByField(obj,"TrangThai",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByTrangThaiLST (string TrangThai )
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.TrangThai = TrangThai;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TrangThai"),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TrangThai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectByTrangThaiLST (string TrangThai, SelectOptions option)
        { 
            TBL_PhanBoLuanChuyenThietBiEntity obj = new TBL_PhanBoLuanChuyenThietBiEntity();
            obj.TrangThai = TrangThai;  
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TrangThai",option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectWithConditionLST (TBL_PhanBoLuanChuyenThietBiEntity obj)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_PhanBoLuanChuyenThietBiEntity></returns>
        public List<TBL_PhanBoLuanChuyenThietBiEntity> SelectWithConditionLST (TBL_PhanBoLuanChuyenThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_PhanBoLuanChuyenThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_PhanBoLuanChuyenThietBiEntity());
        }

}
}
